package com.ruoyi.shop.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品信息对象 goods
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
@ApiModel(value = "Goods", description = "商品信息对象")
@Data
public class GoodsVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 是否人们 */
    @Excel(name = "是否热门")
    private String isPopular;

    /** ID */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 分类ID */
    @Excel(name = "分类ID")
    @ApiModelProperty(value = "分类ID")
    private Long classId;

    /** 是否热门 */
    @Excel(name = "是否热门")
    @ApiModelProperty(value = "是否热门")
    private String isHot;

    /** 库存数量 */
    @Excel(name = "库存数量")
    @ApiModelProperty(value = "库存数量")
    private Long inventory;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiModelProperty(value = "商品名称")
    private String goodName;

    /** 轮播图 */
    @Excel(name = "轮播图")
    @ApiModelProperty(value = "轮播图")
    private String banners;

    /** 配送范围 */
    @Excel(name = "配送范围")
    @ApiModelProperty(value = "配送范围")
    private String deliveryRange;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    /** 详情图 */
    @Excel(name = "详情图")
    @ApiModelProperty(value = "详情图")
    private String goodDetails;
    @ApiModelProperty(value = "特价")
    private String special;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }

    public void setIsHot(String isHot) 
    {
        this.isHot = isHot;
    }

    public String getIsHot() 
    {
        return isHot;
    }

    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }

    public void setGoodName(String goodName) 
    {
        this.goodName = goodName;
    }

    public String getGoodName() 
    {
        return goodName;
    }

    public void setBanners(String banners) 
    {
        this.banners = banners;
    }

    public String getBanners() 
    {
        return banners;
    }

    public void setDeliveryRange(String deliveryRange) 
    {
        this.deliveryRange = deliveryRange;
    }

    public String getDeliveryRange() 
    {
        return deliveryRange;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setGoodDetails(String goodDetails) 
    {
        this.goodDetails = goodDetails;
    }

    public String getGoodDetails() 
    {
        return goodDetails;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classId", getClassId())
            .append("isHot", getIsHot())
            .append("inventory", getInventory())
            .append("goodName", getGoodName())
            .append("banners", getBanners())
            .append("deliveryRange", getDeliveryRange())
            .append("price", getPrice())
            .append("goodDetails", getGoodDetails())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
